export const getWeek = (targetDate) => {
	let date = new Date(targetDate);
	let weekList = ["日", "一", "二", "三", "四", "五", "六"];
	return "周" + weekList[date.getDay()];

}
export const getRecent = (targetDate) => {
	let date = new Date(targetDate);
	let targetDateTimeStamp = date.getTime();
	let todayTimeStamp = new Date() * 1;
	let recent = "";
	if (targetDateTimeStamp == todayTimeStamp) {
		recent = "今天";
	} else if (targetDateTimeStamp - todayTimeStamp === 24 * 3600 * 1000) {
		recent = "明天";
	} else if (targetDateTimeStamp - todayTimeStamp === 2 * 24 * 3600 * 1000) {
		recent = "后天";
	}
	let weekList = ["日", "一", "二", "三", "四", "五", "六"];
	return "周" + weekList[date.getDay()];
}
export const getToday = () => {
	var date = new Date();
	this.year = date.getFullYear();
	this.month = date.getMonth() + 1;
	this.day = date.getDate();
	return this.year + "-" + this.month + "-" + this.day;
}
export const calcDay = (startDate, endDate) => {
	return (new Date(endDate) * 1 - new Date(startDate) * 1) / 24 / 3600 / 1000;
}
